<%@page import="systems.RecentlyUpdate"%>
<%@page import="systems.RecentlyDomain"%>
<%@page import="java.util.List"%>
<%
List<String> domains = RecentlyDomain.getDomains();
List<String> uDomains = RecentlyUpdate.getDomains();
String hasAdv = (String) request.getParameter("hasAdv");
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

			<!-- Right content BEGIN -->
			<div class="span3">
				<% if (hasAdv == null) { %>
				<div class="adv">
					<script type="text/javascript"><!--
					google_ad_client = "ca-pub-4975603569119809";
					/* showdomain 200x200 */
					google_ad_slot = "8364234917";
					google_ad_width = 200;
					google_ad_height = 200;
					//-->
					</script>
					<script type="text/javascript"
					src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
					</script>
				</div>
				<br />
				<% } %>
				<div class="box2">
					<div class="title">Recently Domain</div>
					<div class="content">
						<ul class="list-domain">
							<% 
							for (int i = 0; i < domains.size(); i++) { 
								if (i >= 20) break;
							%>
							<li><a href="/domain/<%=domains.get(i) %>"><%=domains.get(i) %></a></li>
							<% } %>
						</ul>
					</div>
				</div>
				<% if (hasAdv == null) { %>
				<div class="box2">
					<div style="padding: 5px 10px">
						<script type="text/javascript"><!--
						google_ad_client = "ca-pub-4975603569119809";
						/* showdomain 200x90 */
						google_ad_slot = "6887501718";
						google_ad_width = 200;
						google_ad_height = 90;
						//-->
						</script>
						<script type="text/javascript"
						src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
						</script>
					</div>
				</div>
				<% } %>
				<div class="box2">
					<div class="title">Recently Update</div>
					<div class="content">
						<ul class="list-domain">
							<% 
							for (int i = 0; i < uDomains.size(); i++) { 
								if (i >= 20) break;
							%>
							<li><a href="/domain/<%=uDomains.get(i) %>"><%=uDomains.get(i) %></a></li>
							<% } %>
						</ul>
					</div>
				</div>
			</div>
			<!-- Right content END -->